home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Free Software Collection 7
/
FM Towns Free Software Collection 7.iso
/
ms_dos
/
dmove86
/
dmove86.h
< prev
next >
Wrap
Text File
|
1993-11-30
|
2KB
|
88 lines
/*
dmove86.h version 1.20a
Copyright (c) 1993 Delmonta
*/
#pragma nonrec
#pragma optimize space
struct SECTBL
{
unsigned int num;
struct DIRENTRY far *buf;
struct SECTBL *next;
};
struct DPB
{
unsigned char drive;
unsigned char unitno;
unsigned int seclen;
unsigned char sec_clu;
unsigned char shiftcount;
unsigned int iplsectors;
unsigned char fatnum;
unsigned int root_entry;
unsigned int data_sec;
unsigned int maxclu;
};
struct DIRENTRY
{
char filename[8];
char extname[3];
char attr;
char dummy[10];
unsigned int time;
unsigned int date;
unsigned int cluster;
unsigned long filesize;
};
/* fat_dpb.c */
int getdpb(void);
unsigned int *getfat(void);
/* dmove86.c */
int control(struct DIRENTRY far *parent);
int main(int argc,char *argv[]);
/* mkscreen.c */
char dm_errmes(char *s);
void mkscreen(void);
void endscreen(void);
void selectflag(int a);
/* dmmenu.c */
unsigned int dmmenu(struct DIRENTRY far **dirtbl, unsigned int dirnum,
unsigned int cursorpos, int issubdir);
/* sectbl.c */
void freesectbl(struct SECTBL *sectbl);
void writedir(struct SECTBL *sectbl, struct DIRENTRY far **dirtbl,
unsigned int dirnum);
/* dmsort.c */
void dmsort(struct DIRENTRY far **dirtbl,
unsigned int p,unsigned int q);
/* sectbl.a86 */
unsigned int rdabssec(void far *buf,unsigned int secno,int drive);
unsigned int wrabssec(void far *buf,unsigned int secno,int drive);
/* dmmenu()からの戻り値の下位2ビットの値 */
#define UPDIR 0
#define CHGDIR 1
#define WRTDIR 2
#define ORIGIN 3
#define CL2SEC(c) ( Dpb.data_sec + ((c)-2)*(Dpb.sec_clu+1) )
#define DIRSEC (Dpb.seclen / sizeof(struct DIRENTRY))